package com.itqf.ipmsys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itqf.ipmsys.dto.PoliceSituationTypeDto;
import com.itqf.ipmsys.entity.PoliceSituationType;
import com.itqf.ipmsys.mapper.PoliceSituationTypeMapper;
import com.itqf.ipmsys.service.PoliceSituationTypeService;
import com.itqf.ipmsys.vo.PoliceSituationTypeVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 报警类型表 服务实现类
 * </p>
 *
 * @author corn
 * @since 2021-09-22
 */
@Service
public class PoliceSituationTypeServiceImpl extends ServiceImpl<PoliceSituationTypeMapper, PoliceSituationType> implements PoliceSituationTypeService {

    @Autowired
    private PoliceSituationTypeMapper policeSituationTypeMapper;

    @Override
    public Object select() {

        List<PoliceSituationTypeVO> typeVOS = policeSituationTypeMapper.selectPoliceSituationType();

        if (typeVOS.size() > 0) {
            return typeVOS;
        }
        return null;
    }
}
